<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/soasuite.js"></script>
        <script type="text/javascript" src="js/userstate.js"></script>

        <script type="text/javascript" src="js/codemirror.js"></script>
        <script type="text/javascript" src="js/xml.js"></script>


        <link rel="stylesheet" type="text/css" href="style/soasuite.css" />
        <link rel="stylesheet" type="text/css" href="style/codemirror.css">
        <link rel="stylesheet" type="text/css" href="style/default.css">
        <title>SOA Suite</title>
    </head>
    <body>
        <div id="maincontent">
            <div style="width:20%;float:left;margin-right:5px;">
                <div class="header">
                    Control panel
                </div>
                <div class="container" id="leftcol">
                </div>
            </div>

            <div style="width:78%;float:left;">
                <div class="header" id="content_header">
                    Content
                </div>
                <div class="container" id="content">
                </div>
            </div>
        </div>

        <script>
            userToken = <%=session.getAttribute("auth")%>;
            if (userToken == null || userToken == "false" || userToken == false) {
                loadContent("/user/login");
            } else {
                loadContent("/user/home");
                loadLeft("tools");
            }
        </script>

    </body>
</html>


